﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class ItemSystem : ECSSystemtBase
{
    public override Type[] GetFilter()
    {
        return new Type[]
        {
            typeof(ItemComponent),
            typeof(ColisionComponent),
        };
    }

    private List<ECSEntityBase> list;
    private ItemComponent ic;
    private ColisionComponent cc;
    private ECSEntityBase ecs;
    public override void FixedUpdate(int delaTime)
    {
        list = GetEntityList();
        int listCount = list.Count;
        if (listCount<=0)
        {
            return;
        }
        for (int i = 0; i < listCount; i++)
        {
            ecs = list[i];
            ic = ecs.GetCom<ItemComponent>();
            cc = ecs.GetCom<ColisionComponent>();
        }
    }
}

